<script setup lang="ts">
import axios from 'axios';
import { onMounted } from 'vue';
import request from './utils/request';
import { reqLogin} from './api/user/index'
// axios({
//     url: '/api/user/login',
//     method: 'post',
//     data: {
//         username: "admin",
//         password: "111111",
//     }
// })
onMounted(() => {
    reqLogin({ username: "admin", password: "111111" });
})


</script>


<template>
    <svg-icon name="home"></svg-icon>
    <router-view></router-view>
</template>



<style scoped lang="scss">
h1 {
    color: $color;
}
</style>